package com.agua.enturno.vista.componentes;

import com.agua.enturno.vista.dto.RubroFullDTO;
import org.apache.wicket.markup.html.form.IChoiceRenderer;

public class RubroChoiceRenderer implements IChoiceRenderer<RubroFullDTO> {

	private static final long serialVersionUID = 1L;

	@Override
	public Object getDisplayValue(RubroFullDTO rubro) {
		return rubro.getNombre();
	}

	@Override
	public String getIdValue(RubroFullDTO rubro, int index) {
		return rubro.getId().toString();
	}

}
